package com.itqf.edu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itqf.edu.mapper.StudentMapper;
import com.itqf.edu.pojo.Student;
import com.itqf.edu.service.StudentService;
import com.itqf.edu.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * projectName: edu
 *
 * @author: 王洁琳
 * time: 2021/9/28 21:56
 * description:
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public R list() {
        QueryWrapper<Student> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("sdeleted",0);
        List<Student> students = studentMapper.selectList(queryWrapper);
        return R.OK("查询成功",students);
    }
}
